package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 食谱步骤实体类
 */
@Data
@TableName("recipe_step")
public class RecipeStep {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("recipe_id")
    private Integer recipeId;
    @TableField("step_number")
    private Integer stepNumber;

    @TableField("description")
    private String description;

    @TableField("image_url")
    private String imageUrl;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableField(exist = false)
    private Recipe recipe;
} 